package main

import "fmt"

func modifyArry(x [3]int) {
	x[0] = 100
}

func modifyArry2(x [3][2]int) {
	x[2][0] = 100
}

func main() {
	a := [3]int{10, 20, 30}
	modifyArry(a)  // 在modify中修改的是a的副本x
	fmt.Println(a) // [10 20 30]
	b := [3][2]int{
		{1, 1},
		{1, 1},
		{1, 1},
	}
	modifyArry2(b) // modify中修改的是b的副本x
	fmt.Println(b)
}
